<div class="keys form">
<?php echo $this->Form->create('Key');?>
	<fieldset>
		<legend><?php __('Añadir Copia'); ?></legend>
	<?php
		echo $this->Form->input('price', array('label' => 'Precio'));
		echo $this->Form->input('date', array('type'=>'hidden'));
		echo $this->Form->input('detail', array('type' => 'textarea', 'label' => 'Detalle'));
		echo $this->Form->input('key_id', array('value' => $valor_id, 'type' => 'hidden'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Crear', true));?>
</div>
<script type="text/javascript">
    (function($){
        // Date picker
        $("#KeyDate").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>